package com.yiyahui.project.erp.domain;

import java.math.BigDecimal;
import java.util.Date;
import com.fasterxml.jackson.annotation.JsonFormat;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import com.yiyahui.framework.aspectj.lang.annotation.Excel;
import com.yiyahui.framework.web.domain.BaseEntity;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;

/**
 * 主单结账流水方式对象 yiya_closing_methods
 * 
 * @author yiyahui
 * @date 2020-06-10
 */

@ApiModel(value="主单结账流水方式对象")
public class YiyaClosingMethods extends BaseEntity
{
    private static final long serialVersionUID = 1L;

    /** 主键id */
    private Long id;

    /** 患者id */
    @ApiModelProperty(value="患者id")
    @Excel(name = "患者id")
    private Long clinicPersonId;

    /** 主单结账记录流水id */
    @ApiModelProperty(value="主单结账记录流水id")
    @Excel(name = "主单结账记录流水id")
    private Long mainClosingEntriesId;

    /** 结账金额 */
    @ApiModelProperty(value="结账金额")
    @Excel(name = "结账金额")
    private BigDecimal closingMoney;

    /** 结账方式 */
    @ApiModelProperty(value="结账方式")
    @Excel(name = "结账方式")
    private String closingMode;

    /** 结账时间 */
    @ApiModelProperty(value="结账时间")
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    @Excel(name = "结账时间", width = 30, dateFormat = "yyyy-MM-dd HH:mm:ss")
    private Date closingTime;

    /** 备注 */
    @ApiModelProperty(value="备注")
    @Excel(name = "备注")
    private String remarks;

    public void setId(Long id) 
    {
        this.id = id;
    }

    public Long getId() 
    {
        return id;
    }
    public void setClinicPersonId(Long clinicPersonId) 
    {
        this.clinicPersonId = clinicPersonId;
    }

    public Long getClinicPersonId() 
    {
        return clinicPersonId;
    }
    public void setMainClosingEntriesId(Long mainClosingEntriesId) 
    {
        this.mainClosingEntriesId = mainClosingEntriesId;
    }

    public Long getMainClosingEntriesId() 
    {
        return mainClosingEntriesId;
    }

    public BigDecimal getClosingMoney() {
        return closingMoney;
    }

    public void setClosingMoney(BigDecimal closingMoney) {
        this.closingMoney = closingMoney;
    }

    public void setClosingMode(String closingMode)
    {
        this.closingMode = closingMode;
    }

    public String getClosingMode() 
    {
        return closingMode;
    }
    public void setClosingTime(Date closingTime) 
    {
        this.closingTime = closingTime;
    }

    public Date getClosingTime() 
    {
        return closingTime;
    }
    public void setRemarks(String remarks) 
    {
        this.remarks = remarks;
    }

    public String getRemarks() 
    {
        return remarks;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
            .append("id", getId())
            .append("clinicPersonId", getClinicPersonId())
            .append("mainClosingEntriesId", getMainClosingEntriesId())
            .append("closingMoney", getClosingMoney())
            .append("closingMode", getClosingMode())
            .append("closingTime", getClosingTime())
            .append("remarks", getRemarks())
            .append("createTime", getCreateTime())
            .append("createBy", getCreateBy())
            .append("updateTime", getUpdateTime())
            .append("updateBy", getUpdateBy())
            .toString();
    }
}
